From f36828922f6d56d4adbdd5aa392a0148402705fd Mon Sep 17 00:00:00 2001 From: "iap10@labyrinth.cl.cam.ac.uk" Date: Sat, 10 Jul 2004 18:56:36 +0000 Subject: [PATCH] bitkeeper revision 1.1062.1.2 (40f03be45vi3trPSnOPEM4qVXFTLFw) Fix to /etc/xen/network script. --- BitKeeper/etc/ignore | 3 +++ tools/examples/network | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/BitKeeper/etc/ignore b/BitKeeper/etc/ignore index 2331290f1e..8f11ded149 100644 --- a/BitKeeper/etc/ignore +++ b/BitKeeper/etc/ignore @@ -32,3 +32,6 @@ xen/figlet/figlet xen/xen xen/xen-syms xen/xen.* +tools/xfrd/xfrd +xen/tools/elf-reloc +xen/tools/figlet/figlet diff --git a/tools/examples/network b/tools/examples/network index 49ce29da0a..1c0505f6f3 100755 --- a/tools/examples/network +++ b/tools/examples/network @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/sh #============================================================================ # Example Xen network start/stop script. # Xend calls a network script when it starts. @@ -54,9 +54,10 @@ transfer_addrs () { fi # Address lines start with 'inet' and have the device in them. # Replace 'inet' with 'ip addr add' and change the device name $src - # to 'dev $src'. + # to 'dev $src'. Remove netmask as we'll add routes later. ip addr show dev ${src} | egrep '^ *inet' | sed -e " s/inet/ip addr add/ +s@\([0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+\)/[0-9]\+@\1@ s/${src}/dev ${dst}/ " | sh -e } -- 2.30.2